<?php
namespace Home\Controller;
use Think\Controller;
class CommonController extends Controller {
    public function _initialize(){
        //echo "_initialize";
        //p(session());
        //echo session('uid');
        $uid = session('uid');
        $ulevel = session('ulevel');
        //echo $uid;

        $this->assign('outlevel',$ulevel);
        $this->assign('outid',$uid);
        //echo $this->outid;
        if(!(session('?uid'))){
            //echo "11";
            $this->redirect('Index/index');//, 0, 1, '');
        }
    }


}